﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CRMList.aspx.cs" Inherits="CRMList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p style="text-align:center"><img src="images/retroGW.jpg" width="200" alt="logo" /></p><br />

    Welcome <asp:Label ID="lblUserInfo" runat="server"></asp:Label><br />
    Call List:
    <br />
    <asp:GridView AutoGenerateColumns="false" ID="gvPatientList" runat="server" PageSize="30" AllowPaging="true" AllowSorting="true">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label Visible="false" runat="Server" ID="lblPatientID" Text='<%#Eval("Id") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="patientLastName" HeaderText="First Name" />
            <asp:BoundField DataField="patientFirstName" HeaderText="Last Name" />
            <asp:BoundField DataField="patientPhoneHome" HeaderText="Phone (Home)" />
            <asp:BoundField DataField="patientPhoneCell" HeaderText="Phone (Cell)" />
            <asp:ButtonField Text="Call" CommandName="Call" HeaderText="Call Patient" />
        </Columns>
    </asp:GridView>
    </div>
    </form>
</body>
</html>
